package com.ccapp.wsclient;

import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;



public class CcappObject  implements KvmSerializable   {
	private int  count;
	private int resultCode;
	private String resultInfo;
	private long task_id;
	private String staff_id;
	private String serial_number;
	private String cust_name;
	private String eparchy_code;
	private String remark;
	private String call_tag;
	private String start_time;
	private String end_time;
	private String contact_id;
	private int    call_duration;
	private int    sms_count;
	private String intent_type;
	
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	
	public int getResultCode() {
		return resultCode;
	}
	public void setResultCode(int resultCode) {
		this.resultCode = resultCode;
	}
	
	public String getResultInfo() {
		return resultInfo;
	}
	public void setResultInfo(String resultInfo) {
		this.resultInfo = resultInfo;
	}
	
	public String getStaff_id() {
		return staff_id;
	}
	public void setStaff_id(String staff_id) {
		this.staff_id = staff_id;
	}
	
	public long getTask_id() {
		return task_id;
	}
	public void setTask_id(long task_id) {
		this.task_id = task_id;
	}
	
	public String getSerial_number() {
		return serial_number;
	}
	public void setSerial_number(String serial_number) {
		this.serial_number = serial_number;
	}
	
	public String getCust_name() {
		return cust_name;
	}
	public void setCust_name(String cust_name) {
		this.cust_name = cust_name;
	}
	
	public String getEparchy_code() {
		return eparchy_code;
	}
	public void setEparchy_code(String eparchy_code) {
		this.eparchy_code = eparchy_code;
	}
	
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getCall_tag() {
		return call_tag;
	}
	public void setCall_tag(String call_tag) {
		this.call_tag = call_tag;
	}
	
	public String getStart_time() {
		return start_time;
	}
	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}
	
	public String getEnd_time() {
		return end_time;
	}
	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}
	
	public String getContact_id() {
		return contact_id;
	}
	public void setContact_id(String contact_id) {
		this.contact_id = contact_id;
	}
	public int getCall_duration() {
		return call_duration;
	}
	public void setCall_duration(int call_duration) {
		this.call_duration = call_duration;
	}
	
	public int getSms_count() {
		return sms_count;
	}
	public void setSms_count(int sms_count) {
		this.sms_count = sms_count;
	}
	
	public String getIntent_type() {
		return intent_type;
	}
	public void setIntent_type(String intent_type) {
		this.intent_type = intent_type;
	}

	
	@Override
	public Object getProperty(int arg0) {
		// TODO Auto-generated method stub
		switch(arg0){
		case 0:
			return this.count;
		case 1:
			return this.resultCode;
		case 2:
			return this.resultInfo;
		case 3:
			return this.task_id;
		case 4:
			return this.staff_id;
		case 5:
			return this.serial_number;
		case 6:
			return this.cust_name;
		case 7:
			return this.eparchy_code;
		case 8:
			return this.remark;
		case 9:
			return this.call_tag;
		case 10:
			return this.start_time;
		case 11:
			return this.end_time;
		case 12:
			return this.contact_id;
		case 13:
			return this.call_duration;
		case 14:
			return this.sms_count;
		case 15:
			return this.intent_type;
		default:
			break;
			
		}
		return null;
	}
	@Override
	public int getPropertyCount() {
		// TODO Auto-generated method stub
		return 13;
	}
	@Override
	public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
		// TODO Auto-generated method stub
		switch(arg0){
		case 0 :
			arg2.type = PropertyInfo.INTEGER_CLASS;
			arg2.name = "count";
			break;
			
		case 1 :
			arg2.type = PropertyInfo.INTEGER_CLASS;
			arg2.name = "resultCode";
			break;
			
		case 2 :
			arg2.type = PropertyInfo.STRING_CLASS;
			arg2.name = "resultInfo";
			break;
			
		case 3 :
			arg2.type = PropertyInfo.STRING_CLASS;
			arg2.name = "task_id";
			break;
			
		case 4 :
			arg2.type = PropertyInfo.LONG_CLASS;
			arg2.name = "staff_id";
			break;
			
		case 5 :
			arg2.type = PropertyInfo.STRING_CLASS;
			arg2.name = "serial_number";
			break;
			
		case 6 :
			arg2.type = PropertyInfo.STRING_CLASS;
			arg2.name = "cust_name";
			break;
			
		case 7 :
			arg2.type = PropertyInfo.STRING_CLASS;
			arg2.name = "eparchy_code";
			break;
			
		case 8 :
			arg2.type = PropertyInfo.STRING_CLASS;
			arg2.name = "remark";
			break;
			
		case 9 :
			arg2.type = PropertyInfo.STRING_CLASS;
			arg2.name = "call_tag";
			break;
			
		case 10 :
			arg2.type = PropertyInfo.STRING_CLASS;
			arg2.name = "start_time";
			break;
			
		case 11 :
			arg2.type = PropertyInfo.STRING_CLASS;
			arg2.name = "end_time";
			break;
			
		case 12 :
			arg2.type = PropertyInfo.STRING_CLASS;
			arg2.name = "contact_id";
			break;
			
		case 13 :
			arg2.type = PropertyInfo.INTEGER_CLASS;
			arg2.name = "call_duration";
			break;
			
		case 14 :
			arg2.type = PropertyInfo.INTEGER_CLASS;
			arg2.name = "sms_count";
			break;
			
		case 15 :
			arg2.type = PropertyInfo.INTEGER_CLASS;
			arg2.name = "intent_type";
			break;
		}
		
	}
	@Override
	public void setProperty(int arg0, Object arg1) {
		// TODO Auto-generated method stub
		if(arg1 == null) return;
		switch(arg0){
		case 0:
		    this.count = Integer.valueOf(arg1.toString());
		    break;
		    
		case 1:
		    this.resultCode = Integer.valueOf(arg1.toString());
		    break;
		    
		case 2:
		    this.resultInfo = arg1.toString();
		    break;
		    
		case 3:
		    this.task_id = Long.valueOf(arg1.toString());
		    break;
		    
		case 4:
		    this.staff_id = arg1.toString();
		    break;
		    
		case 5:
		    this.serial_number = arg1.toString();
		    break;
		    
		case 6:
		    this.cust_name = arg1.toString();
		    break;

		case 7:
		    this.eparchy_code = arg1.toString();
		    break;
		    
		case 8:
		    this.remark = arg1.toString();
		    break;
		    
		case 9:
		    this.call_tag = arg1.toString();
		    break;
		    
		case 10:
		    this.start_time = arg1.toString();
		    break;
		    
		case 11:
		    this.end_time = arg1.toString();
		    break;
		    
		case 12:
		    this.contact_id = arg1.toString();
		    break;
		    
		case 13:
		    this.call_duration =  Integer.valueOf(arg1.toString());
		    break;
		    
		case 14:
		    this.sms_count =  Integer.valueOf(arg1.toString());
		    break;
		    
		case 15:
		    this.intent_type =   arg1.toString();
		    break;

		}
	}
	
}